/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufpr.tads.ghtads.controller;

import br.ufpr.tads.ghtads.model.MateriaDto;
import br.ufpr.tads.ghtads.model.ProfessorDao;
import br.ufpr.tads.ghtads.model.ProfessorDto;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.OutputStream;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author G0006185
 */
public class Professor {
    
   
    
    public void incluir(ProfessorDto professor) throws IOException, FileNotFoundException, ClassNotFoundException, SQLException {
       ProfessorDao profDao  =  new ProfessorDao();
       profDao.addProfessor(professor);
     
        
        
    }
    public List<ProfessorDto> listProfessor() throws IOException, FileNotFoundException, ClassNotFoundException, SQLException{
        ProfessorDao profDao  =  new ProfessorDao();
       return profDao.listProfessor();
    }
    
}
